package com.woniuxy.topic;

import java.io.IOException;

public class TopicApp {
    public static void main( String[] args ) throws IOException {
        // 特点.颜色.动物名   lazy.orange.rabbit  happy.pink.pig
        new TopicConsumer("*.orange.* ","*.orange.*").consume();
        new TopicConsumer("*.*.rabbit ","*.*.rabbit").consume();
        new TopicConsumer("lazy.# ","lazy.#").consume();
    }
}
